<?php 
function text2html($text) {
	$text = htmlentities($text, ENT_QUOTES, "UTF-8");
	$text = str_replace("\n", "<br/>", $text);
	return $text;
}
?>